for a in range(10): print(a)
# Measure some strings: words = ['cat', 'window', 'defenestrate'] # loop over words for w in words: print(w, len(w)) # output cat 3 window 6 defenestrate 12